﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Ozone.Views.Widget
{
    /// <summary>
    /// WindowExplain.xaml 的交互逻辑
    /// </summary>
    public partial class WindowTipConfig : Window
    {


        public bool isOK = true;
        public WindowTipConfig(string content)
        {
            InitializeComponent();

            if (!string.IsNullOrEmpty(content))
            {

                GWText.Content = content;
            }
            else
            {
                checkbox7.Visibility = Visibility.Collapsed;
            }
        }

        /// <summary>
        /// 确定
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCommOK_Click(object sender, RoutedEventArgs e)
        {


            if (checkbox.IsChecked == true && checkbox1.IsChecked == true && checkbox2.IsChecked == true && checkbox3.IsChecked == true && checkbox4.IsChecked == true && checkbox5.IsChecked == true && checkbox7.IsChecked == true)
            {
                isOK = true;
            }
            else
            {
                isOK = false;
            }
            Close();
        }

        /// <summary>
        /// 取消
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCommcen_Click(object sender, RoutedEventArgs e)
        {
            Close();
            isOK = false;
        }
    }
}
